function cvc_eventlist(EEG)
% CVC_EVENTLIST
%
%  Synopsis
%  ========
%
%  cvc_eventlist(EEG)
%
%  -- Author: Kristian Olesen Toft --
%     Center for Visual Cognition, University of Copenhagen.
%     June 2010
%
%  Purpose
%  =======
%
%  To list event codes and corresponding Eprime event descriptions
%
%  Inputs
%  ======
%
%  EEG - EEGLAB dataset.
%
%  Outputs
%  =======
%
%  List of event codes and corresponding event descriptions
%


fprintf('cvc_eventlist: The following Eprime events were imported from the .edat file and converted to EEG event markers\n\n');
fprintf('Event marker\t.edat event description\n');
for no=1:length(EEG.cvc.edatevents.evtype)
    fprintf('%i\t\t%s\n',EEG.cvc.edatevents.evtype(no), EEG.cvc.edatevents.description{no});
end
